How to use pattern matching in Scala

join shbcf.ru